package com.maoxs.controller;

import com.maoxs.dao.MyTestMapper;
import com.maoxs.pojo.MyTest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class MyTestController {

    @Autowired
    private MyTestMapper myTestMapper;

    @RequestMapping("/list")
    public List<MyTest> findList() {
        List<MyTest> all = myTestMapper.findAll();
        return all;
    }

}
